<script setup lang="ts">
import { useUser } from './store/user'
const store = useUser()
console.log(store.userInfo)
const btnClick = () => {
  store.setUserInfo({
    name: '李四',
    age: 29
  })
}
</script>

<template>
  <div class="app-page">
    <h3>{{ store.userInfo }}</h3>
    <h3>{{ store.getUserName }}</h3>
    <button @click="btnClick">修改用户信息</button>
  </div>
</template>

<style lang="scss" scoped></style>
